Optimal. Leaf size=87 \[ -\frac{d \left (a+b \csc ^{-1}(c x)\right )}{x}+e x \left (a+b \csc ^{-1}(c x)\right )-\frac{b c d \sqrt{c^2 x^2-1}}{\sqrt{c^2 x^2}}+\frac{b e x \tanh ^{-1}\left (\frac{c x}{\sqrt{c^2 x^2-1}}\right )}{\sqrt{c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0645933, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 5, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.263, Rules used = {14, 5239, 451, 217, 206} \[ -\frac{d \left (a+b \csc ^{-1}(c x)\right )}{x}+e x \left (a+b \csc ^{-1}(c x)\right )-\frac{b c d \sqrt{c^2 x^2-1}}{\sqrt{c^2 x^2}}+\frac{b e x \tanh ^{-1}\left (\frac{c x}{\sqrt{c^2 x^2-1}}\right )}{\sqrt{c^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 5239
Rule 451
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right ) \left (a+b \csc ^{-1}(c x)\right )}{x^2} \, dx &=-\frac{d \left (a+b \csc ^{-1}(c x)\right )}{x}+e x \left (a+b \csc ^{-1}(c x)\right )+\frac{(b c x) \int \frac{-d+e x^2}{x^2 \sqrt{-1+c^2 x^2}} \, dx}{\sqrt{c^2 x^2}}\\ &=-\frac{b c d \sqrt{-1+c^2 x^2}}{\sqrt{c^2 x^2}}-\frac{d \left (a+b \csc ^{-1}(c x)\right )}{x}+e x \left (a+b \csc ^{-1}(c x)\right )+\frac{(b c e x) \int \frac{1}{\sqrt{-1+c^2 x^2}} \, dx}{\sqrt{c^2 x^2}}\\ &=-\frac{b c d \sqrt{-1+c^2 x^2}}{\sqrt{c^2 x^2}}-\frac{d \left (a+b \csc ^{-1}(c x)\right )}{x}+e x \left (a+b \csc ^{-1}(c x)\right )+\frac{(b c e x) \operatorname{Subst}\left (\int \frac{1}{1-c^2 x^2} \, dx,x,\frac{x}{\sqrt{-1+c^2 x^2}}\right )}{\sqrt{c^2 x^2}}\\ &=-\frac{b c d \sqrt{-1+c^2 x^2}}{\sqrt{c^2 x^2}}-\frac{d \left (a+b \csc ^{-1}(c x)\right )}{x}+e x \left (a+b \csc ^{-1}(c x)\right )+\frac{b e x \tanh ^{-1}\left (\frac{c x}{\sqrt{-1+c^2 x^2}}\right )}{\sqrt{c^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.119431, size = 104, normalized size = 1.2 \[ -\frac{a d}{x}+a e x-b c d \sqrt{\frac{c^2 x^2-1}{c^2 x^2}}+\frac{b e x \sqrt{1-\frac{1}{c^2 x^2}} \tanh ^{-1}\left (\frac{c x}{\sqrt{c^2 x^2-1}}\right )}{\sqrt{c^2 x^2-1}}-\frac{b d \csc ^{-1}(c x)}{x}+b e x \csc ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.186, size = 136, normalized size = 1.6 \begin{align*} aex-{\frac{ad}{x}}+b{\rm arccsc} \left (cx\right )ex-{\frac{b{\rm arccsc} \left (cx\right )d}{x}}-{bcd{\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}}+{\frac{bd}{c{x}^{2}}{\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}}+{\frac{be}{{c}^{2}x}\sqrt{{c}^{2}{x}^{2}-1}\ln \left ( cx+\sqrt{{c}^{2}{x}^{2}-1} \right ){\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.988959, size = 120, normalized size = 1.38 \begin{align*} -{\left (c \sqrt{-\frac{1}{c^{2} x^{2}} + 1} + \frac{\operatorname{arccsc}\left (c x\right )}{x}\right )} b d + a e x + \frac{{\left (2 \, c x \operatorname{arccsc}\left (c x\right ) + \log \left (\sqrt{-\frac{1}{c^{2} x^{2}} + 1} + 1\right ) - \log \left (-\sqrt{-\frac{1}{c^{2} x^{2}} + 1} + 1\right )\right )} b e}{2 \, c} - \frac{a d}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.90754, size = 288, normalized size = 3.31 \begin{align*} -\frac{b c^{2} d x - a c e x^{2} + b e x \log \left (-c x + \sqrt{c^{2} x^{2} - 1}\right ) + \sqrt{c^{2} x^{2} - 1} b c d + a c d - 2 \,{\left (b c d - b c e\right )} x \arctan \left (-c x + \sqrt{c^{2} x^{2} - 1}\right ) -{\left (b c e x^{2} - b c d +{\left (b c d - b c e\right )} x\right )} \operatorname{arccsc}\left (c x\right )}{c x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{acsc}{\left (c x \right )}\right ) \left (d + e x^{2}\right )}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x^{2} + d\right )}{\left (b \operatorname{arccsc}\left (c x\right ) + a\right )}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]